num=eval(input())
result=0
for i in range(1,num,2):
    result+=1/i
print(result)